package com.nelson.infraredcontrol.business.splash;

import android.content.Intent;
import com.nelson.infraredcontrol.R;
import com.nelson.infraredcontrol.base.BaseActivity;
import com.nelson.infraredcontrol.business.home.MainActivity;
import com.nelson.infraredcontrol.databinding.ActivitySplashBinding;

public class SplashActivity extends BaseActivity<ActivitySplashBinding> {

    @Override
    protected int getContentViewId() {
        return R.layout.activity_splash;
    }

    @Override
    protected void init() {
        mViewDataBinding.getRoot().postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent(SplashActivity.this, MainActivity.class);
                startActivity(intent);
                finish();
            }
        }, 3000);
    }
}
